package com.xh.demo.commons.consts;

import java.math.BigDecimal;

/**
 * @author wen
 * @apiNote Rconst
 * @since 2021-08-07
 */
public class RConst {

    public interface Time {

        /**
         * 5分钟
         */
        long TIME_5_MINUTE = 5 * 60 * 1000;

        /**
         * 2小时
         */
        long TIME_2_HOUR = 2 * 60 * 60 * 1000;

    }

    public interface Security {

        String TOKEN_KEY = "token";
        String TIMESTAMP = "timestamp";
        String NONCE = "nonce";
        String SIGN = "sign";

    }

    public interface Str {

        String SIGN = "sign";
        String EQUAL = "=";
        String AND = "&";

    }

    public interface Num {

        int INT_0 = 0;
        int INT_1 = 1;
        int INT_2 = 2;
        int INT_3 = 3;
        int INT_4 = 4;
        int INT_5 = 5;
        int INT_6 = 6;
        int INT_7 = 7;
        int INT_8 = 8;
        int INT_9 = 9;
        int INT_10 = 10;
        int INT_100 = 100;

        BigDecimal DECIMAL_100 = new BigDecimal(INT_100);

        Integer MINUS_INTEGER_0 = -1;
        Integer INTEGER_0 = 0;
        Integer INTEGER_1 = 1;
        Integer INTEGER_2 = 2;
        Integer INTEGER_3 = 3;
        Integer INTEGER_4 = 4;
        Integer INTEGER_5 = 5;
        Integer INTEGER_6 = 6;
        Integer INTEGER_7 = 7;
        Integer INTEGER_8 = 8;
        Integer INTEGER_9 = 9;
        Integer INTEGER_100 = 100;

        Long LONG_0 = 0L;
        Long LONG_1 = 1L;
        Long LONG_2 = 2L;
        Long LONG_3 = 3L;
        Long LONG_4 = 4L;
        Long LONG_5 = 5L;
        Long LONG_6 = 6L;
        Long LONG_7 = 7L;
        Long LONG_8 = 8L;
        Long LONG_9 = 9L;
        Long LONG_100 = 100L;

        long BASIC_LONG_10 = 10L;

        String STRING_0 = "0";
        String STRING_1 = "1";
        String STRING_2 = "2";
        String STRING_3 = "3";
        String STRING_4 = "4";
        String STRING_5 = "5";
        String STRING_6 = "6";
        String STRING_7 = "7";
        String STRING_8 = "8";
        String STRING_9 = "9";
        String STRING_100 = "100";

    }

}
